package com.Teacher.controller;


import com.Teacher.model.StudentInfo;
import com.Teacher.model.TeacherInfo;
import com.Teacher.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-07-20
 * Time:17:01
 * Text：
 */
@RequestMapping("/Student")
@RestController
public class StudentController {


    @Autowired
    StudentService studentService;

    @RequestMapping("/{studentId}")
    public StudentInfo getId(@PathVariable int studentId){
        return  studentService.getId(studentId);
    }
}
